//AdminMapper.java
package org.example.demo3.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.demo3.model.Admin;

@Mapper
public interface AdminMapper {
    //登录验证
    @Select("select * from admin where username=#{username} and password=#{password}")
    Admin selectByNameAndPwd(String username, String password);
}
